package com.example.work.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.work.entity.DbUser;
import org.apache.ibatis.annotations.Select;


public interface DbUserMapper extends BaseMapper<DbUser> {
    // 自定义查询方法，根据用户名获取用户信息
    @Select("SELECT * FROM db_user WHERE user_name  = #{userName}")
    DbUser getUserByUsername(String userName);
}